/*
 * Created by SharpDevelop.
 * User: DCarns
 * Date: 3/27/2006
 * Time: 9:34 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Configuration;
using System.Collections.Specialized;
using System.Threading;

namespace RssPull
{
	class MainClass
	{
		
		public static void Main(string[] args)
		{
			Console.WriteLine("Edit the RssPull.exe.config to add feeds to pull");
			Console.WriteLine("Press Enter to continue.");
			Console.ReadLine();
			
			NameValueCollection sConfigKeys ;
			sConfigKeys = ConfigurationSettings.AppSettings;
			
			foreach (string s in sConfigKeys.AllKeys)
			{
				PullFeed pull = new PullFeed(sConfigKeys.Get(s));
				new Thread (new ThreadStart(pull.getFeed)).Start();
			}
			
			Console.ReadLine();
		}

	}
	
}
